

public class UrgentMessage extends AbstractBridgeMessage {

    public UrgentMessage(IMessage iMessage) {
        super(iMessage);
    }

    public void sendMessage(String content, String toUser) {
        doSomething();
        super.sendMessage(content, toUser);
    }

    private void doSomething() {
        System.out.println("这是紧急消息，请优先发送");
    }
}